package com.cskaoyan.bean.chaosbean.vxorder.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author jackX
 * @datetime 2023/1/1 13:42
 * @description: TODO:
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class VXDetailVO<T> {
    /**
     * expressInfo : []
     * orderInfo : {"expName":"中通快递","consignee":"del","address":"北京市市辖区东城区 11","addTime":"2022-11-25 14:19:13","orderSn":"20221125938543","actualPrice":30711,"mobile":"11111111111","message":"","expCode":"ZTO","orderStatusText":"已发货","aftersaleStatus":0,"goodsPrice":30711,"expNo":"1231231241","couponPrice":0,"id":311,"freightPrice":0,"handleOption":{"cancel":false,"delete":false,"pay":false,"comment":false,"confirm":true,"refund":false,"rebuy":false,"aftersale":false}}
     * orderGoods : [{"id":392,"orderId":311,"goodsId":1181047,"goodsName":"bugtest","goodsSn":"4617561857","productId":296,"number":1,"price":25999,"specifications":["标准"],"picUrl":"http://182.92.235.201:8083/wx/storage/fetch/fheb1uy8b2qx38zxdpcz.jpg","comment":0,"addTime":"2022-11-25 14:19:13","updateTime":"2022-11-25 14:19:13","deleted":false},{"id":393,"orderId":311,"goodsId":1181044,"goodsName":"lyf","goodsSn":"11242022","productId":293,"number":1,"price":4049,"specifications":["规格值01","规格值02"],"picUrl":"","comment":0,"addTime":"2022-11-25 14:19:13","updateTime":"2022-11-25 14:19:13","deleted":false},{"id":394,"orderId":311,"goodsId":1181013,"goodsName":"红茶","goodsSn":"11111111","productId":260,"number":3,"price":221,"specifications":["规格值2"],"picUrl":"http://182.92.235.201:8083/wx/storage/fetch/7iu95so66d2takvsvp2h.png","comment":0,"addTime":"2022-11-25 14:19:13","updateTime":"2022-11-25 14:19:13","deleted":false}]
     */
    private T orderInfo;
    private String[] expressInfo;
    private List<T> orderGoods;

    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    public static class OrderInfoBean {
        /**
         * expName : 中通快递
         * consignee : del
         * address : 北京市市辖区东城区 11
         * addTime : 2022-11-25 14:19:13
         * orderSn : 20221125938543
         * actualPrice : 30711.0
         * mobile : 11111111111
         * message :
         * expCode : ZTO
         * orderStatusText : 已发货
         * aftersaleStatus : 0
         * goodsPrice : 30711.0
         * expNo : 1231231241
         * couponPrice : 0.0
         * id : 311
         * freightPrice : 0.0
         * handleOption : {"cancel":false,"delete":false,"pay":false,"comment":false,"confirm":true,"refund":false,"rebuy":false,"aftersale":false}
         */
        private String expName;
        private String consignee;
        private String address;
        private String addTime;
        private String orderSn;
        private double actualPrice;
        private String mobile;
        private String message;
        private String expCode;
        private String orderStatusText;
        private int aftersaleStatus;
        private double goodsPrice;
        private String expNo;
        private double couponPrice;
        private int id;
        private double freightPrice;

    }

    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    public static class OrderGoodsBean {
        /**
         * id : 392
         * orderId : 311
         * goodsId : 1181047
         * goodsName : bugtest
         * goodsSn : 4617561857
         * productId : 296
         * number : 1
         * price : 25999.0
         * specifications : ["标准"]
         * picUrl : http://182.92.235.201:8083/wx/storage/fetch/fheb1uy8b2qx38zxdpcz.jpg
         * comment : 0
         * addTime : 2022-11-25 14:19:13
         * updateTime : 2022-11-25 14:19:13
         * deleted : false
         */

        private int id;
        private int orderId;
        private int goodsId;
        private String goodsName;
        private String goodsSn;
        private int productId;
        private int number;
        private double price;
        private String picUrl;
        private int comment;
        private String addTime;
        private String updateTime;
        private boolean deleted;
        private List<String> specifications;
    }
}

